﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hired1Div.master" AutoEventWireup="true" CodeBehind="askquestion.aspx.cs" Inherits="Hired.askquestion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <style type="text/css">
        .div1
        {
            margin-top: 30px;
        }
        .style1
        {
            float: left;
            margin-left: 15px;
            width: 45%;
        }
        .style2
        {
            width: 120px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceHolder" runat="server">
    <span class="identifier"><a href="qna.aspx">Questions & Answers</a>  &gt;&gt; Ask a question</span> <br />
<div class="line-clear"></div>
        <table class="style1">
            <tr>
                <td style="text-align: right" class="style2">
                    Title:</td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldTitle" runat="server" 
                    ErrorMessage="Please enter a title" ForeColor="Red" Display="Dynamic" 
                    Font-Size="X-Small" ControlToValidate="txtTitle" 
                    ValidationGroup="QuestionGroup"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right" class="style2">
                    Category:</td>
                <td>
                    <asp:DropDownList ID="ddlCategory" runat="server">
                        <asp:ListItem Value="Select a Category..."></asp:ListItem>
                        <asp:ListItem>General</asp:ListItem>
                        <asp:ListItem>Accounting</asp:ListItem>
                        <asp:ListItem>Administration</asp:ListItem>
                        <asp:ListItem>Arts, Media &amp; Communication</asp:ListItem>
                        <asp:ListItem>Computing</asp:ListItem>
                        <asp:ListItem>Construction</asp:ListItem>
                        <asp:ListItem>Education</asp:ListItem>
                        <asp:ListItem>Engineering</asp:ListItem>
                        <asp:ListItem>Healthcare</asp:ListItem>
                        <asp:ListItem>Hotels &amp; Restaurants</asp:ListItem>
                        <asp:ListItem>Manufacturing</asp:ListItem>
                        <asp:ListItem>Sales &amp; Marketing</asp:ListItem>
                        <asp:ListItem>Sciences</asp:ListItem>
                        <asp:ListItem>Services</asp:ListItem>
                    </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldCategory" runat="server" 
                    ErrorMessage="Please select a category" ForeColor="Red" Display="Dynamic"
                    Font-Size="X-Small" ControlToValidate="ddlCategory"
                    DefaultValue="Select a Category..." ValidationGroup="QuestionGroup" 
                        InitialValue="Select a Category..."></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right" class="style2">
                    Question:</td>
                <td>
                    <asp:TextBox ID="txtContent" runat="server" Height="197px" TextMode="MultiLine" 
                        Width="315px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldContent" runat="server" 
                    ErrorMessage="Please provide details on your question" ForeColor="Red" Display="Dynamic" 
                    Font-Size="X-Small" ControlToValidate="txtContent" 
                    ValidationGroup="QuestionGroup"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                </td>
                <td style="text-align: right">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click" 
                        ValidationGroup="QuestionGroup"/>
                </td>
            </tr>
        </table>
</asp:Content>
